package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.OperationV2SubConfig;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2024/04/25/16:20
 */

public interface OperationV2SubConfigMapper extends BaseMapper {


    /**
     * @param operationId
     * @Description: 查询所有子配置
     * @Author: ChenXi
     * @Date: 2024/4/25 16:18
     * @return: com.novax.ex.activity.infrastructure.entity.OperationV2SubConfig
     **/
    List<OperationV2SubConfig> list(@Param("operationId") Long operationId);

    /**
     * @param idArr
     * @Description: 批量删除
     * @Author: ChenXi
     * @Date: 2024/4/26 11:04
     * @return: int
     **/
    int batchRemove(@Param("idArr") String[] idArr);

    /**
     * @Description: 查询开启的子活动
     * @Author: ChenXi
     * @Date:  2024/5/8 11:03
     * @param operationId
     * @return: java.util.List<com.novax.ex.activity.infrastructure.entity.OperationV2SubConfig>
     **/
    List<OperationV2SubConfig> queryOpenList(Long operationId);

}